<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Http\Requests\CreditsAdminOplogRequest;
use App\Http\Resources\HomeResource;
use App\Http\Services\Admin\CreditsAdminOplogService;
use Illuminate\Http\Request;

class CreditsAdminOplogController extends Controller
{
    public function list(Request $request, CreditsAdminOplogService $service)
    {
        return $service->make($request->input())->get();
    }

    public function detail(CreditsAdminOplogRequest $request, CreditsAdminOplogService $service)
    {
        return $service->detail($request->input('id'));

    }
}
